package org.stvd.repository.guide.examples.impl;

import org.springframework.stereotype.Repository;
import org.stvd.core.dto.QueryResult;
import org.stvd.entities.guide.examples.BsExampleInfo;
import org.stvd.repository.base.impl.BaseDaoImpl;
import org.stvd.repository.guide.examples.BsExampleInfoDao;

/**
 * @Title BsExampleInfoDaoImpl
 * @Describtion 示例数据层接口实现
 * @author houzx
 * @date 2022年6月1日
 */
@Repository("BsExampleInfoDao")
public class BsExampleInfoDaoImpl extends BaseDaoImpl<BsExampleInfo>
    implements BsExampleInfoDao{

    @Override
    public QueryResult<BsExampleInfo> queryExampleInfoResult(int start, int limit, String name) {
        String hql = "FROM BsExampleInfo WHERE name LIKE ?0";
        return getQueryResultByHQL(start, limit, hql, "%"+name+"%");
    }

}
